﻿using System;
using System.Collections.Generic;
using GameFramework.Battle.Core;
using Gameplay.PVE.Utils;
using RootMotion.FinalIK;
using UnityEngine;
using Yoozoo.Libs;

namespace Gameplay.PVE.Survivor
{
    public abstract class BulletMovement : IClass
    {
        protected Bullet bullet;
        protected bool isFinish;
        public bool useMovementLifeTime = false;
        public virtual void Initialize(Bullet bullet)
        {
            this.bullet = bullet;
            isFinish = false;
        }

        public virtual void Update()
        {
            
        }

        public Vector3 position;
        
        public void SetPosition(Vector3 position)
        {
            this.position = position;
        }

        public abstract void Start();

        public abstract bool IsEnd();
        
        public virtual void OnReset()
        {
            
        }
        
        public virtual void OnHit(Vector3 position)
        {
            
        }
    }
}
